#include "cesium/standard_random_source.hpp"

#include <cstdlib>
#include <ctime>

namespace Cesium {

StandardRandomSource::StandardRandomSource() {
    srand( (uint32)time(NULL) );
}

StandardRandomSource::StandardRandomSource(uint32 seed) {
    srand( seed );
}

float32 StandardRandomSource::random() {
    return (float)rand() / (float)RAND_MAX;
}

} // namespace Cesium
